import React from 'react';
import { Provider } from 'react-redux';
import { IconStyle } from './assets/iconfont/iconfont';
import { GlobalStyle } from './style';
import { HashRouter } from 'react-router-dom';
import route from './route';
import { renderRoutes } from 'react-router-config';
import store from './stores'
import { Data } from "./application/Singers/data";

function  App () {
  return (
    <Provider store={store}>
      <HashRouter>
        <GlobalStyle></GlobalStyle>
        <IconStyle></IconStyle>
        <Data>
        { renderRoutes(route) }
        </Data>
      </HashRouter>
    </Provider>
  )
}

export default App;